<!--模板item-->
<template>
  <div class="temp_item_box">
    <div class="img_box">
      <el-image :src="srcList[0]" :preview-src-list="srcList" />
      <div class="tips">点击图片查看截图</div>
    </div>
    <div class="content">
      <h5>后台管理系统</h5>
      <ul class="sublist">
        <li>
          <span>适用场景：</span>
          <span>商城后台管理系统商城后台管理系统商城后台管理系统商城后台管理系统</span>
        </li>
        <li>
          <span>使用技术：</span>
          <span>商城后台管理系统</span>
        </li>
        <li>
          <div class="group">
            <el-button type="primary" plain size="small">在线演示</el-button>
            <el-button type="warning" plain size="small">下载地址</el-button>
          </div>
        </li>
      </ul>
    </div>
  </div>
</template>
<script>
import p1 from "@/assets/image/banner/1.jpg";
import p2 from "@/assets/image/banner/2.jpg";
import p3 from "@/assets/image/banner/3.jpg";
export default {
  data() {
    return {
      srcList: [p1, p2, p3],
    };
  },
  methods: {},
};
</script>
<style lang="scss" scoped>
.temp_item_box {
  background-color: #fff;
  border: 1px solid #f1f1f1;
  .img_box {
    width: 100%;
    height: 180px;
    position: relative;
    &:hover {
      .tips {
        opacity: 1;
      }
    }
    .tips {
      position: absolute;
      right: 10px;
      top: 10px;
      background: rgba(0, 0, 0, 0.5);
      color: #fff;
      font-size: 14px;
      padding: 7px;
      border-radius: 5px;
      opacity: 0;
      user-select: none;
    }
    .el-image {
      height: 100%;
      width: 100%;
      overflow: hidden;
      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
      /deep/ .el-icon-circle-close {
        color: #f1f1f1;
      }
    }
  }
  .content {
    padding: 10px 15px;
    height: 200px;
    h5 {
      font-size: 18px;
      line-height: 26px;
      margin-bottom: 8px;
    }
    .sublist {
      li {
        line-height: 22px;
        margin: 5px 0;
        span {
          &:first-child {
            color: #666;
            font-size: 14px;
            float: left;
          }
          &:last-child {
            color: #111;
            padding-left: 72px;
            display: block;
          }
        }
        .group {
          margin: 20px 0;
        }
      }
    }
  }
}
</style>